class MwUser < ActiveRecord::Base
  # attr_accessible :title, :body
  attr_accessible :user_name, :password, :MW_Catalog_Rol_id, :MW_Profile_id, :MW_Session_id

  def user_name=(name)
    if(name.length > 100)
      return nil;
    end
    write_attribute(:user_name, name)
  end

  def password=(password)
    if(password.length > 255)
      return nil;
    end
    write_attribute(:password, password)
  end
end
